package coroutines

import kotlinx.coroutines.runBlocking

class SuspendTestMain {
    suspend fun suspendFunction1() {
        println("suspendFunction1() current thread is ${Thread.currentThread().name}")
    }

    suspend fun suspendFunction2() {
        println("suspendFunction2() current thread is ${Thread.currentThread().name}")
    }
}

fun main() = runBlocking {
    println("main() current thread is ${Thread.currentThread().name}")

    val test1 = SuspendTestMain()
    test1.suspendFunction1()
    test1.suspendFunction2()
}